package com.yuehuanghun.framework.web;

/**
 * rest接口返回数据包装类
 * @author yadmin
 *
 * @param <T>
 */
public class ReturnWrapper<T> {
	/** 编号 */
	private int code = 200;
	/** 描述 */
	private String message;
	/** 结果数据 */
	private T data;

	public ReturnWrapper() {
		super();
	}
	
	public ReturnWrapper(int code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public ReturnWrapper(int code, String message, T data) {
		super();
		this.code = code;
		this.message = message;
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}
